//
//  NameModel.swift
//  SwiftUIExample
//
//  Created by qingzhou on 2021/6/18.
//

import Foundation

class NameModel: Identifiable, Codable  {
    let name: String?
    var id:UUID
    var des:String?
    init(id: UUID = UUID(), name: String, des:String) {
        self.id = id
        self.name = name
        self.des = des
    }
    
}

extension NameModel {
    static var names:[NameModel] {
        [
            NameModel(name: "张三丰", des: "太极分两仪"),
            NameModel(name: "令狐冲", des: "独孤九剑，东方不败"),
            NameModel(name: "扫地僧", des: "在慕容施主第一次来的时候")
        ]
    }
}
